package com.zretc.file.controller;

import com.zretc.common.entity.R;
import com.zretc.common.entity.RespResult;
import com.zretc.common.util.JwtUtil;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/file")
public class FileController {
    @PreAuthorize("hasAnyAuthority('system:dept:list')")
    @RequestMapping("/upload")
    public RespResult upload(){
        return R.success("upload成功");
    }

    @RequestMapping("/download")
    public RespResult download(){
        return R.success("download成功");
    }
}
